//
//  OftenMenthod.m
//  PWAPhone
//
//  Created by sheng long on 14-3-23.
//  Copyright (c) 2014年 sheng long. All rights reserved.
//

#import "OftenMenthod.h"

@implementation OftenMenthod

+(UIButton*)setRegisterButtonTitle:(NSString*)title
{
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    [button setBackgroundImage:[UIImage imageNamed:@"注册按钮.png"] forState:UIControlStateNormal];
    [button setBackgroundImage:[UIImage imageNamed:@"注册按钮-点击.png"] forState:UIControlStateHighlighted];
    [button setTitle:title forState:UIControlStateNormal];
    [button sizeToFit];
    [button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [button.titleLabel setFont:[UIFont boldSystemFontOfSize:14]];
    
    return button;
}

+(UIButton*)setButtonTitle:(NSString*)title;
{
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    [button setBackgroundImage:[UIImage imageNamed:@"按钮.png"] forState:UIControlStateNormal];
    [button setBackgroundImage:[UIImage imageNamed:@"按钮-点击.png"] forState:UIControlStateHighlighted];
    [button setTitle:title forState:UIControlStateNormal];
    [button sizeToFit];
    [button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [button.titleLabel setFont:[UIFont boldSystemFontOfSize:14]];
    
    return button;
}

@end
